<template>
  <el-container class="el-container">
    <el-aside width="200px">
      <!--  -->
      <el-menu
        default-active="msbd"
        class="el-menu-vertical-demo"
        background-color="#545c64"
        text-color="#fff"
        active-text-color="#ffd04b"
        :router="true">
        <el-menu-item index="/msbd">
          <i class="el-icon-menu"></i>
          <span slot="title">面试宝典</span>
        </el-menu-item>
       <el-submenu index="test">
         <template slot="title">
            <i class="el-icon-edit-outline"></i>
            <span>在线考试</span>
         </template>
         <el-menu-item index="/test/classify">
             <i class="el-icon-link"></i>
             <span slot="title">分类管理</span>
         </el-menu-item>
         <el-menu-item index="/test/study">
             <i class="el-icon-notebook-2"></i>
             <span slot="title">学习模式</span>
         </el-menu-item>
          <el-menu-item index="/test/exam">
             <i class="el-icon-edit"></i>
             <span slot="title">考试模式</span>
         </el-menu-item>
            <el-menu-item index="/questions">
             <i class="el-icon-folder"></i>
             <span slot="title">题库管理</span>
         </el-menu-item>
       </el-submenu>
        <el-menu-item index="/users">
          <i class="el-icon-setting"></i>
          <span slot="title">用户管理</span>
        </el-menu-item>
      </el-menu>
      <!--  -->      
    </el-aside>
    <el-container>
      <el-header>
        BK后台管理
        <el-dropdown class="users">
          <span class="el-dropdown-link">
            用户: ZN<i class="el-icon-arrow-down el-icon--right"></i>
          </span>
          <el-dropdown-menu slot="dropdown">
            <el-dropdown-item>个人中心</el-dropdown-item>
            <el-dropdown-item>注册</el-dropdown-item>
            <el-dropdown-item>退出</el-dropdown-item>
          </el-dropdown-menu>
        </el-dropdown>
      </el-header>
      <el-main><Nuxt/></el-main>
      <el-footer>Footer</el-footer>
    </el-container>
  </el-container>
</template>

<script>
export default {
  
};
</script>
<style>
html,
body,
#__nuxt,
#__layout {
  height: 100%;
}
</style>
<style scoped>
.el-menu {
  border-right: 0;
}
.el-container {
  height: 100%;
}
.el-header {
  font-size: 20px;
  line-height: 60px;
}
.el-header,
.el-footer {
  background-color: #b3c0d1;
}

.el-aside {
  background-color: rgb(84, 92, 100);
}

.el-main {
  background-color: #e9eef3;
}

body > .el-container {
  margin-bottom: 40px;
}

.users {
  float: right;
}

/* .el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
} */
</style>